package com.xc.hotelmgr.datahandlermt.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.datahandlermt.mapper.HtDailyroomMapper;
import com.xc.hotelmgr.datahandlermt.mapper.HtHotelinfoMapper;
import com.xc.hotelmgr.datahandlermt.pojo.mybatis.HtDailyroom;
import com.xc.hotelmgr.datahandlermt.pojo.mybatis.HtHotelinfo;
import com.xc.hotelmgr.datahandlermt.service.mybatis.HtDailyroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;

@Service
public class HtDailyroomServiceImpl extends ServiceImpl<HtDailyroomMapper, HtDailyroom> implements HtDailyroomService {

    @Autowired
    private HtDailyroomMapper htDailyroomMapper;

    @Override
    public List<HtDailyroom> listAll() {
        return htDailyroomMapper.listAll();
    }

    @Override
    public HtDailyroom getById(Integer id) {
        return htDailyroomMapper.getById(id);
    }

    @Override
    public int insert(HtDailyroom htDailyroom) {
        return htDailyroomMapper.insert(htDailyroom);
    }

    @Override
    public int insertIgnoreNull(HtDailyroom htDailyroom) {
        return htDailyroomMapper.insertIgnoreNull(htDailyroom);
    }

    @Override
    public int update(HtDailyroom htDailyroom) {
        return htDailyroomMapper.update(htDailyroom);
    }

    @Override
    public int updateIgnoreNull(HtDailyroom htDailyroom) {
        return htDailyroomMapper.updateIgnoreNull(htDailyroom);
    }

    @Override
    public int delete(HtDailyroom htDailyroom) {
        return htDailyroomMapper.delete(htDailyroom);
    }

    @Override
    public HtDailyroom getNumByRpCodeDate(String rpCode, Date priceDate) {
        return htDailyroomMapper.getNumByRpCodeDate(rpCode, priceDate);
    }

    @Override
    public HtDailyroom getPriceByRpCodeDate(String rpCode, Date priceDate) {
        return htDailyroomMapper.getPriceByRpCodeDate(rpCode, priceDate);
    }
}
